package com.xpchenfrank.controller;

import com.xpchenfrank.entity.WsmCar;
import com.xpchenfrank.mapper.WsmCarMapper;
import com.xpchenfrank.service.StockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xpchen
 * @time 2018/3/7 17:50
 * @Description
 * @copyright Wuxi Yazuo ,Ltd.copyright 2015-2025
 */
@Slf4j
@RestController
@RequestMapping("stock")
public class StockController {

    @Resource
    StockService stockService;

    @Resource
    WsmCarMapper wsmCarMapper;

    @ResponseBody
    @RequestMapping(value = "/check", method = RequestMethod.GET)
    public String updateMemberPrice() {
        stockService.getCurrentPrice();
        return "Hello my World";
    }
}
